package fr.emn.fil.soc.gr3.entites;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * The persistent class for the "Evaluation" database table.
 * 
 */
@XmlRootElement
@Entity
@Table(name="\"Evaluation\"")
public class Evaluation implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private EvaluationPK id;

	@Column(name="\"note\"")
	private String note;

	@Column(name="\"statut\"")
	private String statut;

	@Column(name="\"token\"")
	private String token;
	
	@ManyToOne
	@JoinColumn(name="\"idCompte\"", insertable=false, updatable=false)
	private Compte compte;
	

	public EvaluationPK getId() {
		return id;
	}

	public void setId(EvaluationPK id) {
		this.id = id;
	}

	public Compte getCompte() {
		return compte;
	}

	public void setCompte(Compte compte) {
		this.compte = compte;
	}

	public Sujet getSujet() {
		return sujet;
	}

	public void setSujet(Sujet sujet) {
		this.sujet = sujet;
	}

	@ManyToOne
	@JoinColumn(name="\"idSujet\"", insertable=false, updatable=false)
	private Sujet sujet;

	public Evaluation() {
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getStatut() {
		return this.statut;
	}

	public void setStatut(String statut) {
		this.statut = statut;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

}